﻿CREATE TRIGGER Customers_Tracking_Delete
ON [dbo].[Customers] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.Customers_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.Customers_Tracking s JOIN DELETED i
    ON s.CustomerID = i.CustomerID
END














